<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title></title>
  <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">
  <link rel="stylesheet" href="index.css">
  <script src="../template.js"></script>
  <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
  <script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container content">
  <a class="title" data-title="Defaulttooltip">you probably</a>
</div>
<div style="margin-top: 40px;">
  <a class="title" data-title="tooltip">probably</a>
</div>
<script>
  (function($){
    $.fn.toolTips = function(opt){
      var settings = $.extend({}, $.fn.toolTips.defaults,opt);
      var tips = $("<span>").addClass(settings.toolTips).hide().appendTo(document.body);
      return this.each(function(i,el){
        var _self = $(el);
        _self.on("mouseover",function(){
          _self.append(tips.html(_self.attr("data-title")).show());
        });
        _self.on("mouseout",function(){
          tips.hide();
        });
      });
    }
    $.fn.toolTips.defaults ={
      toolTips : "tips"
    }
  })(jQuery)
  $(".title").toolTips({});

















  /**(function ($) {
    $.fn.tips = function(opt){
      var settings = $.extend({}, $.fn.tips.defaults,opt);
      var toolTips=$("<span>").addClass(settings.toolTips).hide().appendTo("body");
      return this.each(function(i, el){
        var _self = $(el);
        _self.on("mouseover",function(){
          _self.append(toolTips.html(_self.attr("data-title")).show());
        });
        _self.on("mouseout",function(){
          toolTips.hide();
        });
      });
    }
    $.fn.tips.defaults = {
      toolTips:"tips"
    };
  })(jQuery)**/
</script>
</body>
</html>